<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html >
<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理--机构列表</title>
  <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
<link href="${ctxStatic}/ligeruilib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css">

 <link href="${ctxStatic}/css/kpiuitanchu.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
 <script src="${ctxStatic}/ligeruilib/ligerUI/js/core/base.js" type="text/javascript"></script>
 <script src="${ctxStatic}/ligeruilib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
 <script src="${ctxStatic}/ligeruilib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
 <script src="${ctxStatic}/ligeruilib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
 <script src="${ctxStatic}/js/common.js" type="text/javascript"></script>

 <script>
 $(function(){
	 $("#orgid").ligerComboBox({
			valueField : 'orgid',
			textField : 'orgname',
			selectBoxWidth : 250,
			selectBoxHeight:250,
			treeLeafOnly:false,
			valueFieldID:"hid",
			tree: {url : '../common/get_org_list?orgtype=0',
				checkbox: false, 
				nodeWidth:150,
				ajaxType: 'get', 
				idFieldName: 'orgid',
				textFieldName:"orgname",
				idField:"orgid",
	        	parentIDField:"orgparentid"
			},
			onSelected : function(orgid, orgname) {// id为空值，name为选择的值
				$("#hidszdw").val(orgid);
			},
			width : 250
		});
 })
</script>
</head>
<body>
<div style="width:90%;margin:0 auto;margin-top:10px;color:#ffffff" class="layui-form">
 
  <table >
   <tr>
    <td class="td_right" style="width:100px;min-width:60px"> 所属单位：</td>
    <td>       
		  <input type="text" id="orgid"   class="layui-input">
              <input type="hidden" id="hidszdw" />
    </td>
    <td class="td_right" style="width:60px;min-width:60px">姓名：</td>
    <td>
      <input type="text" class="layui-input" id="realname"/>
    </td>
    <td style="text-align: center;width:100px">
     <input type="button" class="button" value="查询" id="btnquery" onclick="searchtable()" />
    </td>
   </tr>
  
  </table>
		
		  
		   
 
		  
 </div>
 
 <div style="width:95%;margin:0 auto;margin-bottom:5px">
    <div id="list" class="list" lay-filter="list"></div>
 </div>
 
 <div style="width:80;text-align: right;margin-top:5px;margin-right:100px">
  <input type="button" class="button"  value="保存" id="btnsave" />
  <input type="button" class="button"  value="关闭" onclick="top.CloseOpenWindow()" />
 </div>
 
 <input type="hidden" value="${groupid }" id="groupid"/>
 
</body>
</html>